<template>
    <div>
    	<!-- 最底层bg -->
       <div class="wrap"></div>
       <!-- 中间蒙层 -->
       <div class="wrap-1"></div>
       <!-- 上层logo、、、按钮 -->
       <div class="wrap-2">
       		<!-- log0 -->
       		<div class="wrap-2-1"></div>
       		<!-- 正文 -->
       		<div class="wrap-2-2">
       			<div class="pic">
       				
       			</div>
       		</div>
       		<!-- ~~~~~~~~登录注册按钮~~~~~~ -->
       		<div class="text1">
       			<div class="text2">
       				<text class="text3" @click="show1()">登录</text>
       				<text class="text4" @click="show2()">注册</text>
       			</div>
       		</div>
       </div>
    </div>
</template>
<style scoped>
	.wrap{
		position: fixed;
		width: 100%;
		height: 100%;
		background-image: url(http://192.168.2.123:8080/img/index_bg.png);
		background-size: cover;
		z-index: 1;
	}
	.wrap-1{
		position: fixed;
		width: 100%;
		height: 100%;
		background-color: #000;
		opacity: .7;
		z-index: 999;
	}
	.wrap-2{
		position: fixed;
		width: 100%;
		height: 100%;
		/*background-color: #000;*/
		opacity: 1;
		z-index: 999999;
		/*justify-content: center;*/
		align-items: center;
		box-sizing: border-box;
	}
	.wrap-2-1{
		width: 79px;
		height: 79px;
		background-image: url(http://192.168.2.123:8080/img/index_logo.png);
		background-size: cover;
		margin-top: 101px;
	}
	.wrap-2-2{
		width: 100%;
		height: 30px;
		line-height: 26px;
		font-size: 24px;
		align-items: center;
		/*background-color: pink;*/
		margin-top: 30px;
	}
	.pic{
		width: 220px;
		height: 26.5px;
		background-image: url(http://192.168.2.123:8080/img/index_text.png);
		background-size: contain;
		background-repeat: no-repeat;
	}
	.text1{
		width: 100%;
		height: 51px;
		align-items: center;
		margin-top: 164px;
	}
	.text2{
		width: 296px;
		height: 51px;
		justify-content: space-between;
		flex-direction: row;
	}
	.text3,.text4{
		width: 123px;
		height: 51px;
		background-color: #31c57b;
		text-align: center;
		line-height: 51px;
		color: #fff;
		font-size: 20px;
		border-radius: 25px;
	}
</style>
<script>
export default{
    data(){
        return{
          // src1: 'http://192.168.2.123:8080/img/index_text.png',
        }   
    },
    methods: {
    	show1(){
    		this.$router.push('/login');
    	},
    	show2(){
    		this.$router.push('/register');
    	}
    }
}
</script>




